﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using log4net;
using log4net.Core;
using Quartz;
using Spider.Service;

namespace Spider.task
{
    /// <summary>
    /// p5w爬虫定时任务
    /// </summary>
    [DisallowConcurrentExecution]
    public class P5WAnswerTask:IJob
    {
        
        private static readonly ILog Log = LogManager.GetLogger(typeof(P5WAnswerTask));
        public void Execute(IJobExecutionContext context)
        {
            Log.Info("begin p5w answer spider task");
            CrawlerService.CrawlingAndStoreP5WAnswer();
            Log.Info("finish p5w answer spider task");
        }
    }
}